package tween;

@:native("createjs.Ticker")
extern class Ticker {

	// Indicates the target frame rate in frames per second (FPS).
	// Effectively just a shortcut to interval, where framerate == 1000/interval.
	public static var framerate:Float;

	/**
	*  Indicates the target time (in milliseconds) between ticks. Default is 50 (20 FPS).
	*  Note that actual time between ticks may be more than specified depending on CPU load.
	 * This property is ignored if the ticker is using the RAF timing mode.
	**/
	public static var interval:Int;

	public static function init():Void;

	/**
	*	返回实际帧/每秒的周期（每秒的次数）。
	**/
	public static function getMeasuredFPS():Int;

	/**
	*	The average time spent in a tick in milliseconds.
	**/
	public static function getMeasuredTickTime():Int;

	/**
	*	Returns the number of milliseconds that have elapsed since Ticker was initialized via {{#crossLink "Ticker/init"}}.
	*	Returns -1 if Ticker has not been initialized.
	 *	For example, you could use this in a time synchronized animation to determine the exact amount of time that has elapsed.
	**/
	public static function getTime():Int;
}
